<?
#
#		 $id: test_tree.php
#		 Testing tree bbuilding
require_once("../system/config.php");
require_once("system/local_config.php");

db_connect();

function display_tree_js($node = 1){
 global $smarty;
$pages = display_tree($node);
/*
for($i=0;$i<count($pages);$i++){
  echo $pages[$i]['page_indent'].$pages[$i]['page_title']."<br />";
}
*/
$smarty->assign("pages",$pages);
$smarty->assign("page","10");
$output = $smarty->fetch("tree.tpl");
return $output;
}

echo display_tree_js(1);

?>